package com.g1.gzbooksingle.controller;


import com.g1.gzbooksingle.model.DgLoopImage;
import com.g1.gzbooksingle.model.DgOrderInfo;
import com.g1.gzbooksingle.service.IDgOrderInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 订单信息表 前端控制器
 * </p>
 *
 * @author admin
 * @since 2021-10-12
 */
@Slf4j
@Api(tags = "订单信息接口")
@RestController
@RequestMapping("/gzbooksingle/dgOrderInfo")
public class DgOrderInfoController {

    @Autowired
    private IDgOrderInfoService iDgOrderInfoService;

    /**
     * 查询全部订单信息
     * @return
     */
    @GetMapping
    @ApiOperation("查询全部订单信息")
    public List<DgOrderInfo> getList(){
        List<DgOrderInfo> list = iDgOrderInfoService.list();
        return list;
    }

}
